<?php /* Smarty version 2.6.26, created on 2012-05-19 15:01:47
         compiled from catalogs/main.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'catalogs/main.tpl', 5, false),)), $this); ?>
<?php if ($this->_tpl_vars['content']['catalogs']): ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'widget/title-color.tpl', 'smarty_include_vars' => array('color' => 'gray','title' => "Каталог товаров")));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<div>
		<?php $_from = $this->_tpl_vars['content']['catalogs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['catalog']):
?>
			<a  href="<?php echo ((is_array($_tmp=$this->_tpl_vars['catalog']['link'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" subid="<?php echo ((is_array($_tmp=$this->_tpl_vars['catalog']['id'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="cat-root<?php if ($this->_tpl_vars['catalog']['is_active']): ?> cat-root-active<?php endif; ?>">
				<?php echo ((is_array($_tmp=$this->_tpl_vars['catalog']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

			</a>
			<?php if ($this->_tpl_vars['catalog']['items']): ?>
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'catalogs/subcatalogs-first.tpl', 'smarty_include_vars' => array('items' => $this->_tpl_vars['catalog']['items'],'id' => $this->_tpl_vars['catalog']['id'],'showIt' => $this->_tpl_vars['catalog']['is_active'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			<?php endif; ?>
		<?php endforeach; endif; unset($_from); ?>
	</div>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'widget/corner-bottom-color.tpl', 'smarty_include_vars' => array('color' => 'grey')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>
